<?php get_header(); ?>
<section>
    <div class="container">
        <div class="row">
            <div class="col-md-9">
            <?php if (have_posts()) : ?>
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <div class="media">
                        <a class="pull-left" href="<?php the_permalink(); ?>">
                            <div class="size-image">
                                <?php
                                if ( has_post_thumbnail() ) {
                                    the_post_thumbnail();
                                }
                                else
                                ?>
                                <img class="media-object" src="<?php echo get_template_directory_uri();?>/images/girl.jpg" alt="...">
                            </div>
                        </a>
                        <div class="media-body">
                            <h4 class="media-heading"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                            <p><?php the_content(); ?></p>
                            <p><a class="btn btn-default" href="<?php the_permalink(); ?>" role="button">View details »</a></p>
                        </div>
                    </div>

                <?php endwhile; endif; ?>

            <?php else : ?>
                <h2>Nothing found</h2>

            <?php endif; ?>
            </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>